package com.twu.model;

/**
 * Created with IntelliJ IDEA.
 * User: FSW
 * Date: 01/06/13
 * Time: 下午 08:07
 * To change this template use File | Settings | File Templates.
 */
public class Movie extends Book{
    private int year;
    private String rating = "N/A";

    public Movie(String title, String author, String isbn, String location, int year) {
        super(title, author, isbn, location);
        this.year = year;
    }

    public Movie(String title, String author, String isbn, String location, String rating, int year) {
        super(title, author, isbn, location);
        this.rating = rating;
        this.year = year;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getRating() {
        return rating;
    }

    public void setRating(String rating) {
        this.rating = rating;
    }

    @Override
    public void print(){
        System.out.print(getTitle()+"   ");
        System.out.print(getYear()+"    ");
        System.out.print(getAuthor()+"  ");
        System.out.println(getRating());

    }
}
